package mylab.demo.usm.biz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import mylab.annotation.rds.ColumnComment;
import mylab.starters.mybatis.interceptor.impl.foreignKey.ForeignKey;

import java.util.List;

/**
 * <p>
 * </p>
 */
@Getter
@Setter
@ApiModel("部门表")
@TableName(autoResultMap = true)
public class SysDepartment extends BaseOrgNode<SysDepartment> {

    @ForeignKey(SysDepartment.class)
    @ColumnComment("父级id")
    @ApiModelProperty(value = "父级id")
    @TableField
    private String parentId;

    @ForeignKey(SysCompany.class)
    @ColumnComment("所属公司id")
    @ApiModelProperty(value = "所属公司id")
    @TableField
    private String companyId;

    @Override
    public List<String> getChildrenIds() {
        return null;
    }
}
